package com.jh.user.service;

import cn.jh.common.exception.ServiceException;
import com.jh.user.pojo.Platform;
import com.jh.user.pojo.PlatformEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.sql.SQLException;
import java.util.List;

public interface PlatformService {

    void addPlatform(List<Platform> platform);

    public String selectPlatform(Platform platform);

    public void updatePlatform(Platform platform,String type) throws ServiceException;

    public List<Platform> queryPlatform(PlatformEntity entity);

    public List<Platform> queryPlatformList(int pageNumber,PlatformEntity entity);

    public int queryPlatformCount(PlatformEntity entity)throws SQLException;

    public List<Platform> selectPlatform(String platformCode);

    public Platform findPlatform(String platformCode, String state);

    public int queryAgent(String agent);

    Page<Platform> queryPlatFromByShopId(String mobilePhone, Pageable pageable);

    void bmsUpdatePlatForm(String fromAgent, String toAgent) throws ServiceException;

    String getUserIdByPlatform(String agent) throws ServiceException;
}
